import { Custom, CustomEnum } from 'custom/index'

export default class AuthButtonGroup extends Custom {
  public static name: CustomEnum = 'AuthButtonGroup';

  protected btnId = 0
  useItem(auth: null | string = null) {
    const btn = this.add('AuthButton', `AuthButton-${++ this.btnId}`)
    btn.auth(auth)
    return btn
  }
  addItem(auth: null | string = null) {
    this.useItem(auth)
    return this
  }
}
